package com.struct.graph.game2.ui
{
	import Box2D.Dynamics.b2Body;
	
	import com.component.ComponentChildren;
	import com.struct.graph.game2.w2d.Battle2d;
	
	import flash.events.Event;
	
	public class Battle2Frame extends ComponentChildren
	{
		private var battle2d:Battle2d;
		
		private var body:b2Body;
		public function Battle2Frame()
		{
			battle2d = new Battle2d(this);
			body = battle2d.addBall2Word();
			addEventListener(Event.ENTER_FRAME, enterFrame);
		}
		
		private function enterFrame(e:Event):void{
			battle2d.Update();
		}
	}
}